package co.lq.modules.shop.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import co.lq.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券发放记录表
 * </p>
 *
 * @author billy
 * @since 2019-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StoreCouponUser对象", description = "优惠券发放记录表")
public class StoreCouponUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券发放记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long              id;

    @ApiModelProperty(value = "兑换的项目id")
    private Long              cid;

    @ApiModelProperty(value = "优惠券所属用户")
    private Long              uid;

    @ApiModelProperty(value = "优惠券名称")
    private String            couponTitle;

    @ApiModelProperty(value = "优惠券的面值")
    private BigDecimal        couponPrice;

    @ApiModelProperty(value = "最低消费多少金额可用优惠券")
    private BigDecimal        useMinPrice;

    @ApiModelProperty(value = "优惠券创建时间")
    private Integer           addTime;

    @ApiModelProperty(value = "优惠券结束时间")
    private Integer           endTime;

    @ApiModelProperty(value = "使用时间")
    private Integer           useTime;

    @ApiModelProperty(value = "获取方式")
    private String            type;

    @ApiModelProperty(value = "状态（0：未使用，1：已使用, 2:已过期）")
    private Integer           status;

    @ApiModelProperty(value = "是否有效")
    private Integer           isFail;

}
